<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta charset="utf-8"/>
    <link rel="shortcut icon" type="image/x-icon" href="../../../images/jsmile.ico"/>
    <title>新增文档信息</title>
    <link rel="stylesheet" href="//at.alicdn.com/t/font_763780_tdovyxg8qq9.css">
    <link rel="stylesheet" href="../../../libs/vue/theme-chalk/elementui.css">
    <link rel="stylesheet" href="../../../css/index.css">
    <script src="../../../libs/vue/vue.js"></script>
    <script src="../../../libs/jquery/jquery.mini.js"></script>
    <script src="../../../libs/vue/elementui.js"></script>
    <script src="../../../libs/layer/layer.js"></script>
    <script src="../../../javascript/kit/jsmile.js"></script>
    <script src="../../../javascript/kit/vue-ext.js"></script>

    <!--    <script type="text/javascript" charset="utf-8" src="../libs/neditor/neditor.config.js"></script>
        <script type="text/javascript" charset="utf-8" src="../libs/neditor/neditor.all.min.js"> </script>
        <script type="text/javascript" charset="utf-8" src="../libs/neditor/neditor.service.js"></script>
        <script type="text/javascript" charset="utf-8" src="../libs/neditor/i18n/zh-cn/zh-cn.js"></script>
        <script type="text/javascript" src="../libs/neditor/third-party/browser-md5-file.min.js"></script>-->

    <script type="text/javascript" charset="utf-8" src="../../../libs/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../libs/ueditor/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="../../../libs/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../../libs/ueditor/ueditor-ext.js"></script>

</head>
<body>
<div id="app">
    <el-form ref="help" :model="help" :rules="helpRules"  label-width="100px" style="padding:20px;">
        <el-row >
            <el-col :span="10">
                <el-form-item label="标题" prop="helpTitle">
                    <el-input v-model="help.helpTitle" ></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="10" :offset="1">
                <el-form-item label="文档类型" prop="helpType">
                    <el-select v-model="help.helpType"  placeholder="请选择文档类型" style="width: 100%;">
                        <el-option
                                v-for="item in dicts.type"
                                :key="item.dictValue"
                                :label="item.dictName"
                                :value="item.dictValue">
                        </el-option>
                    </el-select>
                </el-form-item>
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="10" >
                <el-form-item label="编码" prop="helpCode">
                    <el-input v-model="help.helpCode"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="10" :offset="1">
                <el-form-item label="url地址" prop="helpUrl">
                    <el-input v-model="help.helpUrl"></el-input>
                </el-form-item>
            </el-col>
        </el-row>
        <el-row>
        <el-col :span="21" >
            <div class="el-form-item">
                <label  class="el-form-item__label" style="width: 100px;">文档内容</label>
                <div class="el-form-item__content" style="margin-left: 100px;line-height: 0px!important;">
                    <div id="editor" type="text/plain" style="width:100%;"></div>
                </div>
            </div>
        </el-col>
        <el-row>
            <el-col :span="10">
                <el-form-item>
                    <el-button @click="closeDialog">取消</el-button>
                    <el-button type="primary" @click="editHelp" :disabled="isDisabled">修改</el-button>
                </el-form-item>
            </el-col>
        </el-row>
    </el-form>
</div>
<script src="../../../javascript/doc/help/edithelp.js"></script>
</body>
</html>